import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2023-10-28
 * Time: 8:45
 */

public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
          for(int k = 1; k <= i;k++) {
              for(int j = 1;j <= k;j++) {
                  System.out.print(k+"*"+j+"="+k*j+" ");
              }
              System.out.println();
          }
    }
    public static void main6(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        while(n != 0) {
            System.out.println(n % 10);
            n /= 10;
        }
    }
    public static int put(int x) {
     if(x/10==0) {
         System.out.print(x);
         return x;
     }
        System.out.print( (x % 10)+" "+(put(x/10)));
     return 0;
    };
    public static void main5(String[] args) {
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
        put(i);
    }
    public static void main4(String[] args) {
        Scanner input = new Scanner(System.in);
        String n = input.nextLine();
        int count = 3;
        while(count!=0) {
            if(n.equals("12345")) {
                System.out.println("输入正确");
                break;
            } else {
                count--;
                System.out.println("你还有"+count+"次机会");
                n = input.nextLine();
            }
        }
    }
    public static void main3(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int count = 0;
        //偶数位
        for(int i = 31;i > 0;i-=2) {
            System.out.print(((n >> i) & 1)+" ");
            if(((n >> i) & 1)==1) {
                count++;
            }
        }
        System.out.println("共"+count+"位");
        count = 0;
        //奇数位
        for(int j = 30;j >= 0;j-=2) {
            System.out.print(((n >> j) & 1)+" ");
            if(((n >> j) & 1)==1) {
                count++;
            }
        }
        System.out.println("共"+count+"位");
    }
    public static void main2(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for(int i = 10;i <= n;i++) {
            int temp = i;
            int count = 1;
            int sum = 0;
            while (temp / 10 != 0) {
                count++;
                temp = temp / 10;
            }
            temp = i;
            while (temp != 0) {
                sum += Math.pow(temp % 10, count);
                temp = temp / 10;
            }
            if (sum == i) {
                System.out.println(i);
            }
        }
    }
    public static void main1(String[] args) {
        Random sj = new Random(); //生成随机数 后面的（）里面不加默认是随系统时间 加了就固定了
        int suj = sj.nextInt(100);
        Scanner input = new Scanner(System.in);
        System.out.println("请输入你要猜的数字");
        int i = input.nextInt();
        while(true) {
            if(i < suj) {
                System.out.println("猜小了");
                i = input.nextInt();
            } else if (i > suj) {
                System.out.println("猜大了");
                i = input.nextInt();
            } else {
                System.out.println("猜对了");
                break;
            }
        }

       // System.out.println(suj);
    }
}
